package com.tdw.eurekaclient.controller;

import java.util.Map;
import java.util.Map.Entry;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ParmsController {
	private static final Logger log = LoggerFactory.getLogger(ParmsController.class);
	
	@RequestMapping(value="/printParmsPrint")
	public String getParmsPrint(HttpServletRequest request, HttpServletResponse response){
		Map<String, String[]> map = request.getParameterMap();
		for(Entry<String, String[]> entry : map.entrySet()){
			log.info("parm key={},parm value={}",entry.getKey(),entry.getValue());
		}
		
		return "ok";
	}
	
}
